﻿@model _2._18._2015_MoviesInClass.Models.MovieViewModel
@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using(Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <div>
        Title: @Html.TextBoxFor(m => m.Title)<br />
        @Html.ValidationMessageFor(m => m.Title)
    </div>
    <div>
        Poster: @Html.TextBoxFor(m => m.PosterUrl)<br />
        @Html.ValidationMessageFor(m => m.PosterUrl)
    </div>
    <div>
        Rating: @Html.TextBoxFor(m => m.Rating)<br />
        @Html.ValidationMessageFor(m => m.Rating)
    </div>
    <div>
        <input type="submit" value="Create" />
    </div>
}